<?php

namespace app\admin\validate;

use think\Validate;

class Exam extends Validate
{
    protected $rule = [
        'exam_name'          => 'require|unique:Exam',
    ];

    protected $message = [
        'exam_name.require'         => '请输入考试名称',
        'exam_name.unique'          => '考试名称已存在',
    ];
}